package widgets
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.media.Camera;
	import flash.media.Video;

	public class VideoScreen extends MovieClip
	{
		private var camera:Camera = new Camera();
		private var vod:Video = new Video();
		public function VideoScreen()
		{
			super();
			initCam();
			initVod();
		}
		
		private function initCam():void
		{
			this.camera = Camera.getCamera();
			camera.setMode(320,240,30);
			camera.setQuality(50*1024,0);
		}
		
		private function initVod():void
		{
			vod.attachCamera(camera);
			this.addChild(vod);
		}
		
		public function GetVideo():Video
		{
			return this.vod;
		}
		
		
		
		
		
		
	}
}